package com.situ.dao;

import java.sql.SQLException;
import java.util.List;

import com.situ.entity.Role;
import com.situ.util.DataSourceUtil;

public class RoleDao {

	public List<Role> selectAll() {
		String sql = "select * from role";
		try {
			return DataSourceUtil.executeQuery(sql, Role.class);
		} catch (InstantiationException | IllegalAccessException | NoSuchFieldException | SecurityException | SQLException e) {
			e.printStackTrace();
		}
		return null;
	}

}
